Include StaticRecompCore.h where the interpreter uses it - #7
Open
dougchansan wants to merge 1 commit into
Open
Conversation
unknown_instruction reads g_static_recomp_core and ppc_state, but the translation unit includes neither the header that declares the former nor a binding for the latter, so core does not compile: Interpreter.cpp(294): error C2065: 'g_static_recomp_core': undeclared identifier Interpreter.cpp(299): error C2065: 'ppc_state': undeclared identifier It is not reached through the PCH either -- pch.h does not pull in StaticRecompCore.h. The ppc_state binding already existed further down the same function, past the first use. Moving it to the top serves both uses rather than adding a second one, which would be a redefinition.
This was referenced Aug 4, 2026
Open
Author
|
Since there are now 17 open PRs across RecompCore, ModernGekko and DolRecomp, here is a suggested merge order. Posting it here because this one has to land first regardless. Merge these three first, in this order
Everything else can follow in any order, subject to the two rules below. The two ordering rules that matter
Rebase clusters — annoyance, not blockersWhichever lands first, the others need a trivial rebase:
All 17 report Worth knowing before reviewing
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
coredoes not compile at themoderngekko-vendortip (7275711) with MSVC:unknown_instructionreads both, but the translation unit includes neither the header declaringg_static_recomp_core(Core/PowerPC/StaticRecomp/StaticRecompCore.h) nor a binding forppc_state. It is not reached through the precompiled header either —pch.hdoes not pull inStaticRecompCore.h.The
ppc_statebinding already existed further down the same function, past the first use. This moves it to the top so it serves both uses; adding a second one is a redefinition (C2374).Found while building
moderngekko-launcherfrom ModernGekko master. It is the second of two breaks in that path — the first is the unguarded PCH flags, already fixed on this branch, which is why this one was not visible until now.Two lines, no behaviour change.
How this fits
These land together as a set: savestates working end to end, the Windows build
and test suite being usable at all, and CI so none of it regresses unnoticed.
This PR is RC #7.
Interpreter.cppincludecoredoes not compile without itCore/SavestateLayout.h, the one definition of where savestates live, what they are called and how they are ordered--load-state--opt-level, default-O2Suggested order: #18 and RC #7, then RC #8, then MG #21; MG #22 before MG
#23. The rest are independent.
Verified on three platforms: Windows (MSVC + clang), Linux (g++ 15.2, x86_64) and
macOS 26.1 (clang, arm64). The portable pieces - the savestate layout and its
tests,
frontend_config,dol_patch- build and pass on all three. Windows-onlypieces are guarded and their tests registered behind
if(WIN32).